<?php
$obj=new class {

    function abab(int $a, int $b):int{
        return $a+$b;
    }
};

$myav=[$obj,"abab"];
$c=$myav(22,33);
echo $c;